﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Services.Common
{
    public class ISMServiceResultErrorCodes
    {
        /*
         *  Common
         */
        public const int ERR_CODE_NO_ERROR = 0;
        public const int ERR_CODE_ISM_TOKEN_ERROR = 1;
        public const int ERR_CODE_WEIXIN_TOKEN_ERROR = 2;
        public const int ERR_CODE_ISM_EXCEPTION_ERR = 3;
        public const int ERR_CODE_ISM_UNKNOWN_ERR = 4;
        public const int ERR_CODE_ISM_AUTHORIZERIGHTSFAIL = 5;

        /*
         *  ERR_CODE_USER
         */
        public const int ERR_CODE_USER_OPENID_EXISTS = 6;
        public const int ERR_CODE_USER_OPENID_NOT_EXISTS = 7;
        public const int ERR_CODE_USER_NOT_EXISTS = 8;

        /*
         *  ERR_CODE_FRIEND
         */
        public const int ERR_CODE_FRIEND_TOO_MANY_ADDFRIEND_REQUEST = 9;
        public const int ERR_CODE_FRIEND_RELATION_EXISTS = 10;

        /*
         *  ERR_CODE_BLACKLIST
         */
        public const int ERR_CODE_USER_IS_ALREADY_BLOCKED = 11;

        /*
         *  ERR_CODE_BIZ_LIKE
         */
        public const int ERR_CODE_BIZ_IS_ALREADY_LIKED = 12;

        /*
         *  ERR_CODE_BIZ_COMMENT
         */
        public const int ERR_CODE_BIZ_DUMPLICATED_COMMENT = 13;

        /*
         *  ERR_CODE_PRIVATE_MESSAGE
         */
        public const int ERR_CODE_PM_DUMPLICATED_PM = 14;

        /*
         *  ERR_CODE_BUSINESS
         */
        public const int ERR_CODE_BUSINESS_DUMPLICATED_BUSINESS = 15;

        /*
         *  ERR_CODE_FORM
         */
        public const int ERR_CODE_FORM_DUMPLICATED_FORM = 16;
        public const int ERR_CODE_FORM_TOOMANY_SUBMITS = 17;

        /*
         *  ERR_CODE_ACTIVITY
         */
        public const int ERR_CODE_ACTIVITY_ALREADY_SUBSCRIBED = 18;
        public const int ERR_CODE_ACTIVITY_CANCELED = 19;
    }
}
